
const Router = require("koa-router");

const router =  new Router();

const db = require("../db");

router.get("/api/designer/banner",async (ctx,next)=>{
        let data = await db.select(`select * from designersbanner`);
        ctx.body = {
        	code:0,
        	data:data
        }
})

router.get("/api/designer/brand",async (ctx,next)=>{
    let data = await db.select(`select * from brand`);
    ctx.body = {
        code:0,
        data:data
    }
})





module.exports = router;